//
// Created by Japhy on 2017-9-1.
//

#ifndef PCSC_LIBPCSC_H
#define PCSC_LIBPCSC_H

#include <cwchar>

#ifdef __cplusplus
extern "C" {
#endif

void Init();
int SetSlot(int slot);
int PowerOn(const char* name, unsigned char* atr, size_t* atrlen);
int Apdu(unsigned char* sApdu, size_t sLen, unsigned char* rApdu, size_t* rlen);
void PowerOff();
int IsCardPresent(const char* name);
int ApduAscii(const char* sApdu, char* rApdu);
#ifdef __cplusplus
}
#endif
#endif //PCSC_LIBPCSC_H
